class Expert:
    excel = {}
    mode = 1
    change_phase = False
    modes = []
    path_to_folder = ''
    paths_to_folders = []
    modes_in_graps = []
    paths_to_res_with_count = []
    paths_to_res_without_count = []
    paths_to_folders_without_count = []
    count_was = False
    count_graps = False
    paths_to_res = []
    engine_type = ""
    dict_mode1 = {}
    dict_mode2 = {}
    dict_mode3 = {}
    input_mode1 = 0
    input_mode2 = 0
    input_mode3 = 0
    from_file = 0
    root_bearing = 4
    cylinder = 0
    def __new__(cls):
        if not hasattr(cls, 'instance'):
            cls.instance = super(Expert, cls).__new__(cls)
        return cls.instance
    def __init__(self):
        self.file = ""
    
    # def page7_excel(self):
    #     try:
    #         excel = ReadExcel("data/mode1/" + glob.glob("*.xlsx")[0])
    #         self.dict_mode1 = excel.getModeParam()
    #     except:
    #         pass
    #     try:
    #         excel = ReadExcel("data/mode2/" + glob.glob("*.xlsx")[0])
    #         self.dict_mode2 = excel.getModeParam()
    #     except:
    #         pass
    #     try:
    #         excel = ReadExcel("data/mode3/" + glob.glob("*.xlsx")[0])
    #         self.dict_mode3 = excel.getModeParam()
    #     except:
    #         pass